//
//  HQAlert.h
//  WenDuEducation
//
//  Created by 黄华强 on 2017/8/1.
//  Copyright © 2017年 黄华强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MBProgressHUD.h>
#import <UIKit/UIKit.h>

@interface HQAlert : NSObject

//显示指示器
+ (void)showHUDAddedTo:(UIView *)view;

//隐藏指示器
+ (void)hideHUDForView:(UIView *)view;

//显示成功提示
+ (void)showSuccess:(NSString *)success;

//显示错误提示
+ (void)showError:(NSString *)error;

//显示消息
+ (void)showMessage:(NSString *)message;

//显示加载动画
+ (void)showLoadGifView:(NSString *)title;

+ (MBProgressHUD *)showProgressHUDAddedTo:(UIView *)view
                                     mode:(MBProgressHUDMode)mode
                                 animated:(BOOL)animated;


//隐藏提示框
+ (void)hideHUD;

//显示需要确定的警告
+ (void)showAlert:(NSString *)title handler:(void(^)(UIAlertAction *action))handler;

//显示确认或取消的提示框
+ (void)showSureAlert:(NSString *)title sureHandler:(void(^)(UIAlertAction *action))sureHandler cancelHandler:(void(^)(UIAlertAction *action))cancelHandler;

//获取当前屏幕显示的viewcontroller
+ (UIViewController *)getCurrentViewController;

@end
